import { createRouter, createWebHistory, createWebHashHistory } from 'vue-router'
import index from '../views/index.vue'

const router = createRouter({
  history: createWebHashHistory(),
  routes: [
    {
      path: '/',
      name: 'home',
      component: index,
    },
    {
      path: '/login',
      name: 'login',
      component: () => import('../views/login.vue'),
    },
    {
      path: '/aps',
      name: 'aps',
      component: () => import('../views/aps.vue'),
    },
    {
      path: '/ips',
      name: 'ips',
      component: () => import('../views/ips.vue'),
    },
  ],
})

export default router
